

    {% extends 'center_base.html' %}
{% load staticfiles %}
{% block title %}
    个人中心-我的课程
    {% endblock %}
{% block custom_break %}

<!--crumbs start-->

    <section>
        <div class="wp">
            <ul  class="crumbs">
                <li><a href="{% url 'index' %}">首页</a>></li>
                <li><a href="{% url 'center:info' %}">个人中心</a>></li>
                <li>个人信息</li>
            </ul>
        </div>
    </section>
{% endblock %}
{% block right_form%}
    <div class="right" >
		<div class="personal_des Releasecont">
			<div class="head">
				<h1>我的消息</h1>
			</div>

		</div>
		<div class="personal_des permessage">
			<div class="head">
				<ul class="tab_header messagehead">
					<li class="active"><a href="{% url 'center:message' %}">个人消息</a> </li>
				</ul>


			</div>
			<div class="messagelist">
                    {% for message in message_list.object_list %}
                    <div class="messages">
                        <div class="fr">
                            <div class="top"><span class="fl time">{{message.add_time}}</span><span class="fr btn foldbtn"></span></div>
                            <p>
                                {{message.message}}
                            </p>
                        </div>
                    </div>
                {% endfor %}



			</div>


			<div class="pageturn pagerright">
                <ul class="pagelist">
                            {% if message_list.has_previous %}
                                <li class="long"><a href="?{{ message_list.previous_page_number.querystring }}">上一页</a></li>
                            {% endif %}
                            {% for page in message_list.pages %}
                                {% if page %}
                                    {% ifequal page message_list.number %}
                                        <li class="active"><a href="?{{ page.querystring }}">{{ page }}</a></li>
                                    {% else %}
                                        <li><a href="?{{ page.querystring }}" class="page">{{ page }}</a></li>
                                    {% endifequal %}
                                {% else %}
                                    <li class="none">...</li>
                                {% endif %}
                            {% endfor %}
                            {% if message_list.has_next %}
                                <li class="long"><a href="?{{ message_list.next_page_number.querystring }}">下一页</a></li>
                            {% endif %}
{#                            <li class="active"><a href="?page=1">1</a></li>#}
{#                            <li><a href="?page=2" class="page">2</a></li>#}
{#                            <li><a href="?page=3" class="page">3</a></li>#}
{#                    <li class="long"><a href="?page=2">下一页</a></li>#}


            </ul>
            </div>
		</div>

	</div>
{% endblock %}